|
|
|
|
|
|
|
If you want to indent a group of lines in the editor, highlight the block of text with your mouse or use the Shift and arrow keys. Next, press the Tab key to execute the move. The entire block moves to the right by the amount specified in your Tab Stop Width setting. Press Shift+Tab to move the entire block back to the left. You can also select Indent or Outdent from the Edit menu. |
|
|
|
|
|
|
|
|
To align a group of lines, press Shift+Tab until theyre all flush against the left margin; then press Tab until theyre properly indented. |
|
|
|
|
|
|
|
|
Sometimes you need to comment out a block of code. To do this, you can manually place a single quote before each line. However, the Edit toolbar presents an easier method. Select View, Toolbars, Edit from the Visual Basic menu. This displays the Edit toolbar, as shown in Figure 18.4. From here you can select the Comment Block and UnComment Block icons. |
|
|
|
|
|
|
|
|
Figure 18.4
The Edit toolbar. |
|
|
|
|
|
|
|
|
Now you can simply highlight a group of lines and click the Comment Block icon, or you can click the UnComment Block icon to toggle between commented code and uncommented code. |
|
|
|
|
|
|
|
|
Viewing All Properties/Procedures |
|
|
|
|
|
|
|
|
From any code window, you can press F2 to display the Object Browser. Heres where you can view all the object properties and procedures (methods) for all the objects in your project. The Object Browser also allows you to select which library of objects to view. You can view any of the loaded libraries (DLLs or OCXs) in your Visual Basic design environment. Besides properties and methods, you can also see any defined constants. |
|
|
|
|
|
|
|
|
You can toggle the view of the editor to display either one procedure/function at a time or all procedures/functions. To do so, select Options from the Tools menu and then select the Editor tab and check or uncheck the Full Module View check box. |
|
|
|
|
|